// 引入 request 方法，假设 request 方法已经定义在某个工具文件中
import request from '/@/utils/request';
import { PageVisLogInput } from '../models';
// 定义 API 路径枚举
enum Api {
    SysLogVisClear = '/SysLogVis/deleteData',
    SysLogVisList = '/SysLogVis/list',
    SysLogVisPage = '/SysLogVis/pages',
}

// 定义 API 方法
export const apiSysLogVisClearPost = () =>
    request({
        url: Api.SysLogVisClear,
        method: 'post',
    });

export const apiSysLogVisListGet = () =>
    request({
        url: Api.SysLogVisList,
        method: 'get',
    });

export const apiSysLogVisPagePost = (body?: PageVisLogInput) =>
    request({
        url: Api.SysLogVisPage,
        method: 'get',
        data: body,
    });